nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.extend = function (A) {
    nike.cq.extend.call(this, A)
};
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.namespace = "nike-cq-";
nike.cq.PES.BrightCovePlayer = (function () {
    var C, G = function (J) {
            var I = J;
            F(I);
            if (I.fadeInOnHover == true) {
                E(I)
            }
        }, F = function (I) {
            var K, J;
            if (I.thumbnailImage) {
                K = $(I.thumbnailImage).attr("width");
                J = $(I.thumbnailImage).attr("height");
                if (!K && !K) {
                    $("<img/>").attr("src", $(I.thumbnailImage).attr("src")).load(function () {
                        K = this.width;
                        J = this.height;
                        D(I, K, J)
                    })
                } else {
                    if (K && J) {
                        D(I, K, J)
                    } else {
                        if (!K) {
                            $("<img/>").attr("src", $(I.thumbnailImage).attr("src")).load(function () {
                                var N = this.width;
                                var L = this.height;
                                var M = J / L;
                                K = N * M;
                                D(I, K, J)
                            })
                        } else {
                            if (!J) {
                                $("<img/>").attr("src", $(I.thumbnailImage).attr("src")).load(function () {
                                    var N = this.width;
                                    var L = this.height;
                                    var M = K / N;
                                    J = L * M;
                                    D(I, K, J)
                                })
                            }
                        }
                    }
                }
            }
        }, D = function (I, K, J) {
            $(I.playButton).css({
                width: K,
                height: J
            });
            $(I.thumbnailDiv).css({
                width: K,
                height: J
            })
        }, E = function (I) {
            $(I.thumbnailDiv).hover(function () {
                $(this).stop().animate({
                    opacity: "1"
                }, "slow")
            }, function () {
                $(this).stop().animate({
                    opacity: "0.7"
                }, "slow")
            })
        }, A = function (K) {
            var J = brightcove.getExperience(K);
            var I = J.getModule(APIModules.EXPERIENCE);
            C = J.getModule(APIModules.VIDEO_PLAYER);
            I.addEventListener(BCExperienceEvent.TEMPLATE_READY, B);
            C.addEventListener(BCMediaEvent.COMPLETE, H)
        }, B = function (I) {
            C.play()
        }, H = function (I) {
            doHideVideoOverlay()
        };
    return {
        init: G,
        onTemplateLoaded: A
    }
})();
nike.cq.PES.PESBox = (function () {
    var init = function (configuration) {
        var config = configuration;
        if ($(".nike-cq-pesBox").length == 0) {
            setupPESBox()
        }
        $(config.elementSelector).click(function () {
            displayPESBox(config)
        })
    }, displayPESBox = function (config) {
            $("body").css("overflow", "hidden");
            $(".nike-cq-pesBox").css("height", "100%");
            var ie8 = $.browser.msie && ($.browser.version == 8 || $.browser.version == 7);
            if (ie8) {
                $(".nike-cq-pesBox").css("background-color", "#000000");
                $(".nike-cq-pesBox").css("filter", "alpha(opacity=91)")
            }
            $(".nike-cq-pesBox").css("height", "100%");
            $(".nike-cq-pesBox").show();
            $(".nike-cq-pesBox #nike-cq-pesBox-content").html("<span class='nike-cq-pesBox-close'></span>" + config.contentToDisplay);
            if (config.customFunction) {
                var customFunction = eval(config.customFunction);
                if (typeof (customFunction) === "function") {
                    customFunction.call(this)
                }
            }
        }, hidePESBox = function () {
            $(".nike-cq-pesBox").hide();
            $(".nike-cq-pesBox #nike-cq-pesBox-content").html("")
        }, setupPESBox = function () {
            $("body").prepend("<div class='nike-cq-pesBox'><div id='nike-cq-pesBox-content'></div></div>");
            $(".nike-cq-pesBox").delegate(".nike-cq-pesBox-close", "click", function () {
                hidePESBox()
            })
        };
    return {
        init: init,
        hidePESBox: hidePESBox
    }
})();
nike.cq.PES.PreviewOptions = (function () {
    var B = function () {
        var C = $(".nike-cq-element-reference").length,
            E = $(".placeholder").length,
            D = $(".pesWarning").length;
        $("#nike-cq-preview-options-form").hide();
        if (C > 0) {
            if (D === 0) {
                $("#nike-cq-preview-options-form").hide();
                return
            } else {
                $("#nike-cq-preview-options-form").show()
            } if ($(".pesWarning").length > 0) {
                $("#showPESWarningsYes").attr("checked", true)
            } else {
                $("#showPESWarningsNo").attr("checked", true)
            }
            $("#nike-cq-preview-options-form").delegate("input:radio", "change", function () {
                $("#nike-cq-preview-options-form").submit()
            })
        }
    }, A = function () {
            $("#phonePreview").click(function () {
                var F = $(this).data("phoneVersion");
                var C = window.location.href;
                var E = C.split(".html");
                C = E[0] + ".phone.html?wcmmode=disabled&phone-preview";
                if (F == "iphone5") {
                    var D = window.open(C, "", "width=320px,height=960px,scrollbars=1");
                    D.onload = function () {
                        this.document.title = this.document.title + "-  cscsPHONE PREVIEW - iPHONE 5 IN PORTRAIT";
                        var G = this.document.getElementsByTagName("body")[0];
                        G.className = G.className + " nike-cq-phone-preview"
                    }
                }
            })
        };
    return {
        init: B,
        initPhonePreview: A
    }
})();
nike.cq.PES.SelectorToVideoOverlay = function (A) {
    var B = $(A).not(".video-initialized");
    var C = B.find(".video-thumbnail");
    if (C.length > 0) {
        C.bind("click", function () {
            var E = $(this);
            var I = 912;
            var D = 513;
            var G = "nike-cq-overlay-video-player-large";
            if ($(window).width() < 960) {
                var I = 704;
                var D = 396;
                var G = "nike-cq-overlay-video-player-small"
            }
            var H = this;
            var F = new nike.cq.UI.Overlay({
                cssClass: G,
                onOpen: function (K) {
                    $(E).clone().appendTo(".nike-cq-overlay-content-element").attr("id", "nike-cq-overlay-video-player");
                    var J = $("#nike-cq-overlay-video-player");
                    J.attr("data-width", I);
                    J.attr("data-height", D);
                    this.overlayVideo = new nike.cq.UI.Component.VideoPlayer(J)
                },
                onBeforeClose: function (J) {
                    this.overlayVideo.remove();
                    this.close()
                }
            })
        })
    }
    B.append('<div class="faux-border"></div>').addClass("video-initialized")
};
$(window).load(function () {
    nike.cq.PES.PreviewOptions.init();
    nike.cq.PES.PreviewOptions.initPhonePreview()
});
nike.cq.PES.PesCarousel = (function () {
    var B = B || $("body");
    var D = "carouselInitialized";
    var C = function () {
        if (B && B.data("cmsMode") !== "EDIT") {
            $(".nike-cq-pes-carousel-component").each(function () {
                var F = $(this);
                if ($(this).parents().hasClass("nike-cq-notification-carousel-container")) {
                    $.each($(".nike-cq-notification-carousel-container .nike-cq-pes-reference"), function (G, H) {
                        $(H).addClass("nike-cq-notification-carousel-slide")
                    });
                    var E = {
                        namespace: "nike-cq-notification-carousel-",
                        selector: ".nike-cq-notification-carousel-slide > div",
                        controlNav: false,
                        prevText: "",
                        nextText: ""
                    };
                    A(F, E)
                } else {
                    if (F.data(D) !== true) {
                        new nike.cq.UI.Component.PesCarousel(this, {
                            contloop: true
                        });
                        F.data(D, true)
                    }
                }
            })
        }
    };
    var A = function (G, E) {
        var I = $(G);
        var H = {
            namespace: "nike-cq-flex-",
            animation: "slide",
            animationSpeed: 1000,
            direction: "horizontal",
            selector: null,
            itemWidth: I.data("width"),
            maxItems: I.data("numberOfSlidesInViewport"),
            move: I.data("slideby"),
            slideshowSpeed: I.data("delay"),
            animationLoop: I.data("continuousLoop"),
            slideshow: I.data("displayCarouselAnimation"),
            controlNav: I.data("displayControlsAtBottom"),
            directionNav: I.data("displayControlsInViewport"),
            prevText: "<",
            nextText: ">",
            useCSS: true,
            pauseOnHover: true,
            pauseOnAction: true
        };
        var F = $.extend({}, H, E);
        I.flexslider(F)
    };
    return {
        init: C
    }
})();
$(function () {
    nike.cq.PES.PesCarousel.init()
});
$(function () {
    if (!$("html").hasClass("ie7")) {
        nike.cq.UI.StringReplace.replace(".nike-cq-tesla-xml h1,.nike-cq-tesla-xml h2,.nike-cq-tesla-xml h3,.nike-cq-tesla-xml h4,.nike-cq-tesla-xml h5,.nike-cq-tesla-xml h6,.nike-cq-tesla-xml p,.nike-cq-tesla-xml li,.nike-cq-tesla-xml span, .nike-cq-social-feed-community-content-text, .nike-cq-social-feed-community-content-title", "Nike+", 'Nike<span class="nikeplus">+</span>');
        nike.cq.UI.StringReplace.replace(".nike-cq-tesla-xml h1,.nike-cq-tesla-xml h2,.nike-cq-tesla-xml h3,.nike-cq-tesla-xml h4,.nike-cq-tesla-xml h5,.nike-cq-tesla-xml h6,.nike-cq-tesla-xml p,.nike-cq-tesla-xml li,.nike-cq-tesla-xml span, .nike-cq-social-feed-community-content-text, .nike-cq-social-feed-community-content-title", "NIKE+", 'NIKE<span class="nikeplus">+</span>');
        nike.cq.UI.StringReplace.replace(".nike-cq-tesla-xml h1,.nike-cq-tesla-xml h2,.nike-cq-tesla-xml h3,.nike-cq-tesla-xml h4,.nike-cq-tesla-xml h5,.nike-cq-tesla-xml h6,.nike-cq-tesla-xml p,.nike-cq-tesla-xml li,.nike-cq-tesla-xml span, .nike-cq-social-feed-community-content-text, .nike-cq-social-feed-community-content-title", "dunk+", 'dunk<span class="nikeplus">+</span>');
        nike.cq.UI.StringReplace.replace(".nike-cq-tesla-xml h1,.nike-cq-tesla-xml h2,.nike-cq-tesla-xml h3,.nike-cq-tesla-xml h4,.nike-cq-tesla-xml h5,.nike-cq-tesla-xml h6,.nike-cq-tesla-xml p,.nike-cq-tesla-xml li,.nike-cq-tesla-xml span, .nike-cq-social-feed-community-content-text, .nike-cq-social-feed-community-content-title", "DUNK+", 'DUNK<span class="nikeplus">+</span>');
        nike.cq.UI.StringReplace.replace(".nike-cq-tesla-xml h1,.nike-cq-tesla-xml h2,.nike-cq-tesla-xml h3,.nike-cq-tesla-xml h4,.nike-cq-tesla-xml h5,.nike-cq-tesla-xml h6,.nike-cq-tesla-xml p,.nike-cq-tesla-xml li,.nike-cq-tesla-xml span, .nike-cq-social-feed-community-content-text, .nike-cq-social-feed-community-content-title", "LUNARGLIDE+", 'LUNARGLIDE<span class="nikeplus">+</span>');
        nike.cq.UI.StringReplace.replace(".nike-cq-tesla-xml h1,.nike-cq-tesla-xml h2,.nike-cq-tesla-xml h3,.nike-cq-tesla-xml h4,.nike-cq-tesla-xml h5,.nike-cq-tesla-xml h6,.nike-cq-tesla-xml p,.nike-cq-tesla-xml li,.nike-cq-tesla-xml span, .nike-cq-social-feed-community-content-text, .nike-cq-social-feed-community-content-title", "LUNARTR1+", 'LUNARTR1<span class="nikeplus">+</span>');
        nike.cq.UI.StringReplace.replace(".nike-cq-tesla-xml h1,.nike-cq-tesla-xml h2,.nike-cq-tesla-xml h3,.nike-cq-tesla-xml h4,.nike-cq-tesla-xml h5,.nike-cq-tesla-xml h6,.nike-cq-tesla-xml p,.nike-cq-tesla-xml li,.nike-cq-tesla-xml span, .nike-cq-social-feed-community-content-text, .nike-cq-social-feed-community-content-title", "HYPERWORKOUT+", 'HYPERWORKOUT<span class="nikeplus">+</span>')
    }
    nike.cq.UI.StringReplace.replace(".nike-cq-follow-us div.nike-cq-follow-content h3", "NIKEID", 'NIKE<em class="nike-id">i</em>D');
    nike.cq.UI.StringReplace.replace(".nike-cq-follow-us div.nike-cq-follow-content h3", "NIKEiD", 'NIKE<em class="nike-id">i</em>D')
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.hotspots = (function (C) {
    var A = C || {};
    var F = {
        hotspotElement: A.hotspotElement || ".hotspot",
        hotspotContainerElement: A.hotspotContainerElement || ".hotspots",
        hotspotContainerElementW: A.hotspotContainerElementW || 580,
        expandedW: A.expandedW || 180,
        space: A.space || 14,
        hotspotH: A.hotspotH || 40,
        hotspotW: A.hotspotW || 40,
        orgTopBottomStripHeight: A.topBottomStripHeight || 109,
        respTopBottomStripHeight: A.respTopBottomStripHeight || 87,
        topBottomStripHeight: A.topBottomStripHeight || 109,
        xOverflow: A.xOverflow || false,
        scale: A.scale || 80,
        breakPoint: A.breakPoint || 960
    };
    var L = (F.expandedW / 2) - (F.hotspotW / 2);
    var D = F.hotspotH + F.space;
    var K = false;
    var H = function (N) {
        $(N).removeClass("hotspot-left hotspot-right");
        $(N).find(".hotspot-panel").removeAttr("style");
        $(N).find(".carrot").removeClass("carrot-top carrot-bottom carrot-left carrot-right");
        var Y = $(F.hotspotContainerElement).width();
        var R = $(F.hotspotContainerElement).height();
        var X = N.find(".hotspot-panel").outerHeight();
        var S = N.position(),
            V = S.left,
            W = F.hotspotW,
            T = S.top,
            O = F.hotspotH,
            Q = N.attr("data-hotspot-x"),
            P = N.attr("data-hotspot-y");
        if (V === 0 && T === 0 && (Q !== 0 || P !== 0)) {
            return
        }
        if ((V + (W / 2)) > Y / 2) {
            N.find(".carrot").addClass("carrot-left");
            N.addClass("hotspot-right")
        } else {
            N.find(".carrot").addClass("carrot-right");
            N.addClass("hotspot-left")
        }
        var M = 0 - (X / 2) + (O / 2);
        if ((T + (O / 2)) - (X / 2) < 0) {
            M = 0 - T
        }
        if ((T + (O / 2)) + (X / 2) > R) {
            var U = (T + (O / 2)) + (X / 2) - R;
            U = U;
            M = M - U
        }
        N.find(".hotspot-panel").css({
            top: M,
            bottom: "auto"
        });
        if (F.xOverflow) {
            if (T < (F.topBottomStripHeight) && V > L && V < (Y - L - W)) {
                N.find(".carrot").addClass("carrot-bottom");
                N.find(".hotspot-panel").css({
                    top: D,
                    bottom: "auto",
                    left: -L
                })
            }
        } else {
            if (T < (F.topBottomStripHeight)) {
                N.find(".carrot").addClass("carrot-bottom");
                N.find(".hotspot-panel").css({
                    top: D,
                    bottom: "auto",
                    left: -L
                })
            }
        } if (F.xOverflow) {
            if (T > (R - F.topBottomStripHeight) && V > L && V < (Y - L - W)) {
                N.find(".carrot").addClass("carrot-top");
                N.find(".hotspot-panel").css({
                    top: "auto",
                    bottom: D,
                    left: -L
                })
            }
        } else {
            if (T > (R - F.topBottomStripHeight - F.hotspotH)) {
                N.find(".carrot").addClass("carrot-top");
                N.find(".hotspot-panel").css({
                    top: "auto",
                    bottom: D,
                    left: -L
                })
            }
        }
    };
    var B = function () {
        K = true;
        F.topBottomStripHeight = F.respTopBottomStripHeight;
        $(F.hotspotElement).each(function () {
            if ($(F.hotspotContainerElement).width() < F.hotspotContainerElementW) {
                var N = parseInt($(this).attr("data-hotspot-x"), 10) / 100 * F.scale;
                var M = parseInt($(this).attr("data-hotspot-y"), 10) / 100 * F.scale;
                $(this).css({
                    left: N,
                    top: M
                });
                H($(this))
            }
        });
        K = false
    };
    var E = function () {
        K = true;
        F.topBottomStripHeight = F.orgTopBottomStripHeight;
        $(F.hotspotElement).each(function () {
            if ($(F.hotspotContainerElement).width() >= F.hotspotContainerElementW) {
                var N = parseInt($(this).attr("data-hotspot-x"), 10);
                var M = parseInt($(this).attr("data-hotspot-y"), 10);
                $(this).css({
                    left: N,
                    top: M
                });
                H($(this))
            }
        });
        K = false
    };
    var J = function (N) {
        var P = "";
        if ($(".nike-cq-mod-left-nav .nike-cq-p1 .nike-cq-without-scallop").length || $(".left-bar").length) {
            P = 1229
        } else {
            P = 960
        }
        F = {
            hotspotElement: N.hotspotElement || ".hotspot",
            hotspotContainerElement: N.hotspotContainerElement || ".hotspots",
            hotspotContainerElementW: N.hotspotContainerElementW || 580,
            expandedW: N.expandedW || 180,
            space: N.space || 14,
            hotspotH: N.hotspotH || 40,
            hotspotW: N.hotspotW || 40,
            orgTopBottomStripHeight: N.topBottomStripHeight || 109,
            respTopBottomStripHeight: N.respTopBottomStripHeight || 87,
            topBottomStripHeight: N.topBottomStripHeight || 109,
            xOverflow: N.xOverflow || false,
            scale: N.scale || 80,
            breakPoint: N.breakPoint || P
        };
        $(F.hotspotElement).find("a").click(function (Q) {
            Q.preventDefault()
        });
        $("body").bind("touchstart", function (Q) {
            if (!$(this).hasClass("hotspot")) {
                $("body").focus()
            }
        });
        $(F.hotspotElement).find(".hotspot-panel").before('<span class="carrot"></span>');
        var O = function () {
            $(F.hotspotContainerElement).filter(":visible").find(F.hotspotElement).each(function (Q) {
                var R = $(this);
                R.delay(500 * (Q + 1)).fadeIn(300, function () {
                    H(R)
                })
            })
        };
        if (document.readyState === "complete") {
            O()
        } else {
            $(window).load(function () {
                O()
            })
        } if (window.matchMedia) {
            var M = window.matchMedia("(max-width: " + F.breakPoint + "px)");
            if (!K && M.matches) {
                if (!K) {
                    B()
                }
            }
            M.addListener(function (Q) {
                if (!K && Q.matches) {
                    if (!K) {
                        B()
                    }
                } else {
                    if (!K) {
                        E()
                    }
                }
            })
        } else {
            if (window.innerWidth <= F.breakPoint) {
                if (!K) {
                    B()
                }
            }
            $(window).resize(function (Q) {
                if (window.innerWidth <= F.breakPoint) {
                    if (!K) {
                        B()
                    }
                } else {
                    if (!K) {
                        E()
                    }
                }
            })
        }
    };
    var I = function (M) {
        F.container = M.container || "";
        if (F.container !== "") {
            F.hotspotElement = $(F.container).find(".hotspot")
        }
        $(F.hotspotElement).hide();
        $(F.hotspotElement).each(function (O) {
            var P = $(this);
            var N = $(this).find(".hotspot-panel");
            $(N).removeAttr("style");
            $(P).removeClass("hotspot-left hotspot-right").find(".carrot").removeClass("carrot-top carrot-bottom carrot-left carrot-right");
            P.delay(500 * (O + 1)).fadeIn(300, function () {
                H(P)
            })
        })
    };
    var G = {
        init: function (M) {
            J(M)
        },
        reinit: function (M) {
            I(M)
        }
    };
    return G
})();
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.productOptions = (function (C) {
    var B = C || {}, H = {
            productOptions: B.productOptions || ".nike-cq-product-options",
            thumbnailElements: B.thumbnailElements || "li.nike-cq-product-options-option a",
            imageContainerElem: B.imageContainerElem || ".nike-cq-product-options-images img"
        }, F = function (L, K) {
            var J = K.find(H.imageContainerElem),
                M = J.filter(".active"),
                N = J.eq(L);
            N.fadeIn(500);
            M.stop().fadeOut(1000, function () {
                $(this).removeClass("active");
                N.addClass("active")
            })
        }, A = "",
        D = function (K, J) {
            var L = J.closest(".nike-cq-p1-layout-foreground").find(".nike-cq-cta-component");
            if (L.length) {
                if (!L.eq(0).find("nav").length) {
                    L.eq(0).find("a").attr("href", nike.cq.Utils.validateInternalUrl(K))
                }
            }
        }, E = function (M, J) {
            J.find(H.thumbnailElements + ".current").removeClass("current").find(".marker").remove();
            var K = J.find(H.thumbnailElements),
                L = K.eq(M).addClass("current").append('<span class="marker"></span>');
            return L.attr("href")
        }, I = function (L) {
            var J = L.find(".nike-cq-product-options-images img"),
                K = L.find(H.thumbnailElements),
                M = J.eq(0);
            M.addClass("active").fadeIn(1000, function () {
                var N = E(0, L);
                D(N, L);
                K.fadeIn(1100, function () {
                    $(this).addClass("available")
                })
            })
        }, G = function () {
            var J = H.thumbnailElements;
            var L = function () {
                $(J).hide();
                $(H.imageContainerElem).hide();
                $(H.productOptions).each(function () {
                    I($(this))
                });
                $(".nike-cq-product-options-title").fadeIn(900)
            };
            var K = function () {
                $(H.productOptions).delegate(H.thumbnailElements, "click", function (T) {
                    T.preventDefault();
                    var R = $(this),
                        N = R.closest(H.productOptions),
                        O = N.find(":animated"),
                        P = R.attr("href"),
                        M = R.parent(),
                        S = M.parent().find("li"),
                        Q = S.index(M);
                    if (O.length === 0 && !R.hasClass("current") && R.hasClass("available")) {
                        F(Q, N);
                        E(Q, N);
                        D(P, N)
                    }
                });
                $(J).hover(function () {
                    var N = $(this),
                        O = N.find("img"),
                        M = O.attr("title");
                    if (M !== "") {
                        N.parent().append('<span class="nike-cq-p1-tooltip"><p>' + M + '</p><span class="carrot-bottom"></span></span>')
                    }
                }, function () {
                    var M = $(this);
                    M.parent().find(".nike-cq-p1-tooltip").remove()
                })
            };
            if (document.readyState === "complete") {
                L();
                K()
            } else {
                $(window).load(function () {
                    L()
                });
                $(function () {
                    K()
                })
            }
        };
    return {
        init: G,
        showProductOptions: I
    }
})();
nike.cq.PES.ProductDrawer = (function () {
    var B = B || $("body");
    var A = "initialized";
    var C = function () {
        if (B.data("cmsMode") !== "EDIT") {
            $(".nike-cq-product-drawer").each(function () {
                var D = $(this),
                    J = D.find(".nike-cq-product-drawer-container").data("open"),
                    H = D.find(".nike-cq-product-drawer-reference-container"),
                    L = D.find(".nike-cq-product-drawer-component"),
                    I = D.find(".nike-cq-product-drawer-subtitle-line-1"),
                    E = D.find(".nike-cq-product-drawer-tab"),
                    G = D.data(A);
                if (G) {
                    return
                }
                if (!J) {
                    H.hide()
                }
                if (L) {
                    var F = {
                        multiRowSelector: "section.nike-cq-product-drawer-section",
                        wrapperClass: "nike-cq-product-drawer-wrapper",
                        outerWrapperClass: "nike-cq-product-drawer-outer-wrapper",
                        leftArrowClass: "nike-cq-product-drawer-left-arrow",
                        rightArrowClass: "nike-cq-product-drawer-right-arrow",
                        leftNavPaddedClassName: "nike-cq-product-drawer-pad-left-nav",
                        tabContainer: E.parent(".nike-cq-product-drawer-tab-container")
                    };
                    var K = new nike.cq.UI.Component.LiquidCarousel(L, F)
                }
                E.click(function (M) {
                    H.slideToggle();
                    I.toggleClass("open")
                });
                D.data(A, true)
            })
        }
    };
    return {
        init: C
    }
})();
$(document).ready(function () {
    nike.cq.PES.ProductDrawer.init()
});
$(function () {
    $(document).delegate(".touch a.nike-cq-stacked-cta-button", "touchstart", function (A) {
        A.preventDefault()
    })
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1Layout = (function () {
    var A = function () {
        $(".nike-cq-p1-layout-foreground .nike-cq-cta").hide();
        $(".nike-cq-p1-layout-foreground .nike-cq-cta .nike-cq-cta-component").parent().show()
    };
    var B = function (C) {
        new nike.cq.PES.SelectorToVideoOverlay(C)
    };
    return {
        init: function () {
            $(".nike-cq-p1-layout-foreground").contents().filter(function () {
                return this.nodeType === 3
            }).remove();
            if ($(".nike-cq-p1-layout-foreground").length && $("body").data("cmsMode") !== "EDIT") {
                A()
            }
            if ($(".nike-cq-hotspots").length) {
                if (parseInt($(".nike-cq-touts-p1-layout-touts-p1-image-resource").attr("height")) > 500) {
                    nike.cq.PES.hotspots.init({
                        topBottomStripHeight: 142,
                        respTopBottomStripHeight: 120
                    })
                } else {
                    nike.cq.PES.hotspots.init({
                        topBottomStripHeight: 109,
                        respTopBottomStripHeight: 87
                    })
                }
            }
            if ($(".nike-cq-product-options").length > 0) {
                nike.cq.PES.productOptions.init()
            }
            if ($(".nike-cq-p1-layout-foreground .video-thumbnail").length > 0) {
                B(".nike-cq-p1-layout-foreground")
            }
        }
    }
})();
$(function () {
    nike.cq.PES.p1Layout.init()
});
var Nike = Nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1SpotlightRight = (function () {
    var A = {
        init: function (B) {
            new nike.cq.PES.SelectorToVideoOverlay(B)
        }
    };
    return A
})();
$(function () {
    $(".nike-cq-p1-text-right-center-aligned-container").contents().filter(function () {
        return this.nodeType === 3
    }).remove();
    if ($(".nike-cq-p1-text-right-center-aligned-container").length) {
        nike.cq.PES.p1SpotlightRight.init(".nike-cq-p1-text-right-center-aligned-container")
    }
});
var Nike = Nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1SpotlightLeft = (function () {
    var A = {
        init: function (B) {
            new nike.cq.PES.SelectorToVideoOverlay(B)
        }
    };
    return A
})();
$(function () {
    $(".nike-cq-p1-text-left-center-aligned-container").contents().filter(function () {
        return this.nodeType === 3
    }).remove();
    if ($(".nike-cq-p1-text-left-center-aligned-container").length > 0) {
        nike.cq.PES.p1SpotlightLeft.init(".nike-cq-p1-text-left-center-aligned-container")
    }
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1SpotlightRightCtas = (function () {
    var A = function () {
        $(".nike-cq-p1-text-right-center-aligned-ctas-section-2 .nike-cq-cta").hide();
        $(".nike-cq-p1-text-right-center-aligned-ctas-section-2 .nike-cq-cta .nike-cq-cta-component").parent().show()
    };
    var B = {
        init: function () {
            A()
        }
    };
    return B
})();
$(function () {
    $(".nike-cq-p1-text-right-center-aligned-ctas-section-2").contents().filter(function () {
        return this.nodeType === 3
    }).remove();
    if ($(".nike-cq-p1-text-right-center-aligned-ctas-section-2").length && $("body").data("cmsMode") !== "EDIT") {
        nike.cq.PES.p1SpotlightRightCtas.init()
    }
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1SpotlightLeftCtas = (function () {
    var A = function () {
        $(".nike-cq-p1-text-left-center-aligned-ctas-section-2 .nike-cq-cta").hide();
        $(".nike-cq-p1-text-left-center-aligned-ctas-section-2 .nike-cq-cta .nike-cq-cta-component").parent().show()
    };
    var B = {
        init: function () {
            A()
        }
    };
    return B
})();
$(function () {
    $(".nike-cq-p1-text-left-center-aligned-ctas-section-2").contents().filter(function () {
        return this.nodeType === 3
    }).remove();
    if ($(".nike-cq-p1-text-left-center-aligned-ctas-section-2").length && $("body").data("cmsMode") !== "EDIT") {
        nike.cq.PES.p1SpotlightLeftCtas.init()
    }
});
var Nike = Nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1SpotlightVideoRight = (function () {
    var A = {
        init: function (B) {
            new nike.cq.PES.SelectorToVideoOverlay(B)
        }
    };
    return A
})();
$(function () {
    $(".nike-cq-p1-text-right-center-aligned-2-ctas-1-video-section-2").contents().filter(function () {
        return this.nodeType === 3
    }).remove();
    if ($(".nike-cq-p1-text-right-center-aligned-2-ctas-1-video-section-2").length > 0) {
        nike.cq.PES.p1SpotlightVideoRight.init(".nike-cq-p1-text-right-center-aligned-2-ctas-1-video-section-2")
    }
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1SpotlightVideoLeft = (function () {
    var A = {
        init: function (B) {
            new nike.cq.PES.SelectorToVideoOverlay(B)
        }
    };
    return A
})();
$(function () {
    $(".nike-cq-p1-text-left-center-aligned-2-ctas-1-video-container").contents().filter(function () {
        return this.nodeType === 3
    }).remove();
    if ($(".nike-cq-p1-text-left-center-aligned-2-ctas-1-video-container .video-thumbnail").length > 0) {
        nike.cq.PES.p1SpotlightVideoLeft.init(".nike-cq-p1-text-left-center-aligned-2-ctas-1-video-container")
    }
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1Toggle = (function () {
    var F = function (N) {
        var K = $(this),
            P = K.closest(".nike-cq-p1-toggle-container.nike-cq-toggle"),
            I = P.find(".nike-cq-pes-reference-component"),
            Q = "." + K.attr("data-tout-id"),
            M = P.find(Q);
        if (M.filter(":hidden").length) {
            var J = P.find(".nike-cq-pes-reference-component:visible").first().height(),
                O = P.find(".nike-cq-p1-toggle-cover"),
                L = P.find(".nike-cq-toggle-component");
            L.find("a").removeClass("selected");
            K.addClass("selected");
            D(K, L);
            O.height(J).fadeIn(600, function () {
                $(this).height(M.height());
                I.hide();
                M.show();
                nike.cq.PES.hotspots.reinit({
                    container: M.find(".hotspots")
                });
                P.trigger("p1-toggle")
            }).fadeOut(600)
        }
        N.preventDefault()
    }, H = function () {
            var J = $(this),
                I = J.closest(".nike-cq-toggle-component");
            D(J, I)
        }, E = function () {
            var K = $(this),
                I = K.closest(".nike-cq-toggle-component"),
                J = I.find("a.selected");
            D(J, I)
        }, D = function (I, J) {
            J.find("a").removeClass("hovering");
            I.addClass("hovering");
            J.find(".toggle-label-selection").css({
                width: (I.width() - 2),
                left: I.position().left
            })
        };
    var A = function (J) {
        $(".nike-cq-toggle-wrapper ul").contents().filter(function () {
            return this.nodeType === 3
        }).remove();
        var M = $(J),
            P = M.find(".nike-cq-pes-reference-component"),
            K = P.length,
            O = M.find(".nike-cq-toggle-component"),
            I = 0,
            L = P.find(".nike-cq-background-component"),
            N = O.find("li:first-child a");
        if (K == 2) {
            O.find("a").each(function (Q, R) {
                var S = $(R).width();
                if (S > I) {
                    I = S
                }
            }).animate({
                width: I
            }).addClass("center-text")
        } else {
            I = N.width()
        }
        N.addClass("selected hovering");
        O.find(".toggle-label-selection").css({
            width: (I - 2),
            left: N.position().left
        });
        O.delegate("a", "click", F).delegate("nav", "mouseleave", E);
        M.prepend(L.first().clone().addClass("nike-cq-p1-toggle-cover").hide())
    };
    var B = "initialized";
    var C = function () {
        $(".nike-cq-p1-toggle-container.nike-cq-toggle").each(function () {
            var I = $(this);
            if (!I.data(B)) {
                A(I);
                I.data(B, true)
            }
        })
    };
    var G = function () {
        if (document.readyState === "complete") {
            C()
        } else {
            setTimeout(G, 500)
        }
    };
    return {
        init: G
    }
})();
$(window).load(function () {
    nike.cq.PES.p1Toggle.init()
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.p1Inspirations = (function () {
    var H = function (Q) {
        Q.preventDefault();
        var P = $(this),
            O = P.closest(".nike-cq-link-set-toggle-component").find("." + P.attr("data-link-toggle-set"));
        if (O.filter(":hidden").length) {
            P.closest("ul").find("a").removeClass("selected");
            P.addClass("selected");
            J(P);
            L(O);
            P.closest(".nike-cq-link-set-toggle-component").find(".nike-cq-link-set-toggle-set:visible").fadeOut(300, function () {
                C(O);
                O.fadeIn(300)
            })
        }
    }, L = function (O) {
            O.closest(".nike-cq-link-set-toggle-sets").find("span.arrow").fadeOut(300)
        }, E = function (P, Q) {
            var O = $("body").width(),
                R = P.attr("data-set-size");
            if (O <= 960 && R > 4) {
                P.closest(".nike-cq-link-set-toggle-sets").find(Q).show();
                P.css("margin-left", 0)
            } else {
                P.css("margin", "0 auto")
            }
        }, N = function (O) {
            E(O, "span.arrow")
        }, C = function (O) {
            E(O, "span.arrow.right")
        }, I = function (O) {
            O.closest(".nike-cq-link-set-toggle-sets").find("span.arrow.right").hide()
        }, B = function (O) {
            E(O, "span.arrow.left")
        }, D = function (O) {
            O.closest(".nike-cq-link-set-toggle-sets").find("span.arrow.left").hide()
        }, A = function (U) {
            U.preventDefault();
            var X = $(this),
                Q = X.siblings(".nike-cq-link-set-toggle-set-mask:first").find(".nike-cq-link-set-toggle-set:visible");
            if (Q.not(":animated").length == 1) {
                var W = X.hasClass("right"),
                    O = Q.find("li:first").width(),
                    R = Q.attr("data-set-size"),
                    P = parseInt(Q.css("margin-left")),
                    V = 20,
                    T = O + V;
                var S = -(T * (R - 4));
                if (W) {
                    if (P != S) {
                        Q.animate({
                            "margin-left": (P - T) + "px"
                        });
                        B(Q);
                        if (P == (S + T)) {
                            I(Q)
                        }
                    }
                } else {
                    if (P != 0) {
                        Q.animate({
                            "margin-left": (P + T) + "px"
                        });
                        C(Q);
                        if (P == (S + T)) {
                            D(Q)
                        }
                    }
                }
            }
        }, G = function () {
            $(".nike-cq-p1-layout-inspiration-section .nike-cq-link-set-toggle-set:visible").each(function () {
                C($(this))
            })
        }, K = function () {
            J($(this))
        }, M = function () {
            var O = $(this).find("a.selected").eq(0);
            J(O)
        }, F = function () {
            var O = $(".nike-cq-link-set-toggle-selector").each(function () {
                var P = $(this),
                    R = parseInt(P.css("left"));
                if (R < 4) {
                    var Q = P.siblings("ul").find("li:first-child a").eq(0);
                    J(Q)
                }
            })
        }, J = function (P) {
            var O = P.position().left + (P.width() / 2) + 3;
            P.closest(".nike-cq-link-set-toggle-nav").find(".nike-cq-link-set-toggle-selector:first").css("left", O)
        };
    return {
        init: function () {
            F();
            G();
            $(".nike-cq-p1-layout-inspiration-section .nike-cq-link-set-toggle-select").delegate("a", "click", H);
            $(".nike-cq-p1-layout-inspiration-section .nike-cq-link-set-toggle-sets").delegate("span.arrow", "click", A);
            $(".nike-cq-p1-toggle-container").bind("p1-toggle", F);
            $(window).bind("orientationchange", G)
        }
    }
})();
$(function () {
    if ($(".nike-cq-p1-layout-inspiration-section .nike-cq-link-set-toggle").length) {
        nike.cq.PES.p1Inspirations.init()
    }
});
var Nike = Nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.P2VideoTout = (function () {
    var A = {
        videosInit: function (B) {
            new nike.cq.PES.SelectorToVideoOverlay(B)
        }
    };
    return A
})();
$(function () {
    if ($(".nike-cq-p2-video-tout-300-container").length) {
        nike.cq.PES.P2VideoTout.videosInit(".nike-cq-p2-video-tout-300-container")
    }
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.contentSlide = (function () {
    var A = $(".nike-cq-content-slide-540-container .video-thumbnail").clone().attr("class", "overlay-video");
    var B = function () {
        $(".nike-cq-content-slide-540-container .video-thumbnail").click(function () {
            var F = $(this);
            var I = 912;
            var E = 513;
            var H = "nike-cq-overlay-video-player-large";
            if ($(window).width() < 960) {
                var I = 704;
                var E = 396;
                var H = "nike-cq-overlay-video-player-small"
            }
            var G = new nike.cq.UI.Overlay({
                cssClass: H,
                onOpen: function () {
                    $(F).clone().appendTo(".nike-cq-overlay-content-element").attr("id", "nike-cq-overlay-video-player");
                    var J = $("#nike-cq-overlay-video-player");
                    J.attr("data-width", I);
                    J.attr("data-height", E);
                    nike.cq.PES.contentSlide.overlayVideo = new nike.cq.UI.Component.VideoPlayer(J)
                },
                onBeforeClose: function () {
                    nike.cq.PES.contentSlide.overlayVideo.remove();
                    this.close()
                }
            })
        })
    };
    var D = function () {
        var F = function () {
            $(".nike-cq-content-slide-540-section-1 .nike-cq-touts-background-image-resource").each(function () {
                var J = $(this),
                    H = J.height(),
                    I = Math.round(H * 0.8);
                J.css({
                    width: "430px",
                    height: I
                });
                J.parent().width("430px").height(I)
            })
        };
        var G = function () {
            $(".nike-cq-content-slide-540-section-1 .nike-cq-touts-background-image-resource").each(function () {
                var H = $(this);
                H.css({
                    width: "auto",
                    height: "auto"
                })
            })
        };
        if (window.matchMedia) {
            var E = window.matchMedia("(max-width: 960px)");
            if (E.matches) {
                F()
            }
            E.addListener(function (H) {
                if (H.matches) {
                    F()
                } else {
                    G()
                }
            })
        } else {
            if ($(window).width() < 960) {
                F()
            }
            $(window).resize(function () {
                var H = $(window).width();
                if (H < 960) {
                    F()
                } else {
                    G()
                }
            })
        }
    };
    var C = {
        init: function () {
            B();
            D()
        }
    };
    return C
})();
$(function () {
    if ($(".nike-cq-content-slide-540-container").length) {
        nike.cq.PES.contentSlide.init()
    }
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.PortraitMerchZone = (function () {
    var A = function () {
        $(".nike-cq-portrait-merch-zone-carousel-container .nike-cq-cta-component a").each(function () {
            $(this).closest(".slide").find("img").first().wrap($(this).clone().empty())
        })
    };
    var B = {
        init: function () {
            A()
        }
    };
    return B
})();
$(function () {
    if ($(".nike-cq-portrait-merch-zone-carousel-container").length) {
        nike.cq.PES.PortraitMerchZone.init()
    }
});
nike.cq.PES.FlashTout = function (B) {
    var D = $(B),
        C = D.find(".nike-cq-flash-component"),
        F = D.find(".nike-cq-flash-component-fallback"),
        A = nike.cq.Utils.hasFlash();
    if (A) {
        nike.cq.UI.Component.Flash.initialize(C)
    }
    var E = E || $("body");
    if (A && E.data("cmsMode") !== "EDIT") {
        F.remove()
    }
};
$(function () {
    $(".nike-cq-flash-tout-container").each(function () {
        nike.cq.PES.FlashTout(this)
    })
});
nike.cq.PES.GlobalFooter = (function () {
    var D = $(".nike-cq-footer-2"),
        B = $(".nike-cq-footer-3-inner"),
        F = function () {
            var I = $(".nike-cq-footer-2 .nike-cq-list-item .nike-cq-list-sublist-level1");
            I.each(function (K, L) {
                $(this).before("<span class='nike-cq-footer-arrow-up'></span>")
            });
            I.parent().click(function (L) {
                L.preventDefault();
                var K = $(this).children("a");
                C(K)
            });
            if ($("body").data("cms-mode") != "EDIT") {
                var J = 0;
                var G = 60;
                var H = 260;
                $(".nike-cq-footer-boxes-box").each(function (K, L) {
                    if ($(L).height() > J) {
                        J = $(L).height()
                    }
                });
                if (J < H) {
                    J = 260
                }
                $(".nike-cq-footer-boxes-box-inner").each(function (N, P) {
                    var K = J - G;
                    $(P).height(K);
                    var L = $(P).find(".nike-cq-cta");
                    var O = $(L).width();
                    var M = -(O / 2);
                    $(P).find(".nike-cq-cta").css({
                        position: "absolute",
                        bottom: "30px",
                        left: "50%",
                        "margin-left": M
                    })
                })
            }
        }, C = function (G) {
            var H = $(G).siblings(".nike-cq-list-sublist-level1");
            A();
            if (!$(G).hasClass("selected")) {
                $(".nike-cq-footer-2 .nike-cq-list-item.nike-cq-list-item-level1 a").removeClass("selected");
                E(H, $(G).parent());
                $(G).addClass("selected")
            } else {
                $(".nike-cq-footer-2 .nike-cq-list-item.nike-cq-list-item-level1 a").removeClass("selected")
            }
        }, E = function (H, G) {
            var J = $(H).clone();
            $(D).addClass("move-up");
            $(D).before('<div class="nike-cq-footer-2-submenu"><div class="nike-cq-footer-2-submenu-inner"></div></div>');
            $(J).show();
            var I = $(J).wrap("<div>").parent().html();
            $(".nike-cq-footer-2-submenu-inner").html("");
            $(".nike-cq-footer-2-submenu-inner").html(I);
            G.addClass("darker-background")
        }, A = function () {
            $(D).removeClass("move-up");
            $(".nike-cq-footer-2-submenu").remove();
            $(".nike-cq-footer-2-inner ul li").removeClass("darker-background")
        };
    return {
        init: F
    }
})();
$(function () {
    if ($(".nike-cq-global-footer-container").length) {
        nike.cq.PES.GlobalFooter.init()
    }
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.MerchMenu = (function () {
    var A = function () {
        $("div.nike-cq-merch-menu-hover").mouseleave(function () {
            $(this).removeClass("active")
        });
        $("div.nike-cq-merch-menu-expand span").mouseenter(function () {
            var B = $(this).parents("div.nike-cq-merch-menu-hover");
            B.addClass("active")
        })
    };
    return {
        init: A
    }
})();
$(function () {
    if ($("div.nike-cq-merch-menu-component").length) {
        nike.cq.PES.MerchMenu.init()
    }
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.ContentGrid = nike.cq.PES.ContentGrid ? nike.cq.PES.ContentGrid : {};
$.extend(nike.cq.PES.ContentGrid, {
    initializedListener: false,
    adjustGridContainerHeight: function (B) {
        var C = function (E) {
            return (E.offset().top) + (E.height())
        };
        var D = B.find(".nike-cq-grid-cell"),
            A = D.first();
        D.each(function () {
            if (C($(this)) > C(A)) {
                A = $(this)
            }
        });
        B.height(C(A) - B.offset().top)
    },
    adjustHeights: function () {
        var A = "gridHeightAdjusted";
        if ($(".nike-cq-content-grid-container").length > 0) {
            $(".nike-cq-content-grid-container").each(function () {
                nike.cq.PES.ContentGrid.adjustGridContainerHeight($(this))
            })
        }
    },
    initResizeListener: function () {
        if (!nike.cq.PES.ContentGrid.initializedListener) {
            $(window).resize(function () {
                $(".nike-cq-content-grid-container").each(function () {
                    nike.cq.PES.ContentGrid.adjustGridContainerHeight($(this))
                })
            });
            nike.cq.PES.ContentGrid.initializedListener = true
        }
    },
    initVideo: function (A) {
        new nike.cq.PES.SelectorToVideoOverlay(A)
    },
    init: function () {
        nike.cq.PES.ContentGrid.adjustHeights();
        nike.cq.PES.ContentGrid.initResizeListener();
        if (nike.cq.PES.ContentGrid.initCarousel) {
            nike.cq.PES.ContentGrid.initCarousel()
        }
        var A = ".nike-cq-content-grid-video-cell";
        if ($(A).length > 0) {
            nike.cq.PES.ContentGrid.initVideo(A)
        }
    }
});
$(function () {
    nike.cq.PES.ContentGrid.init()
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.ContentGrid = nike.cq.PES.ContentGrid ? nike.cq.PES.ContentGrid : {};
$.extend(nike.cq.PES.ContentGrid, {
    wideDialogClass: "nike-cq-content-grid-overlay-image-wide",
    tallDialogClass: "nike-cq-content-grid-overlay-image-tall",
    initModalCarousel: function () {
        var A = {
            dialogAppendSelector: "body",
            backgroundClass: "nike-cq-content-grid-modal-background",
            dialogClass: "nike-cq-content-grid-modal-dialog",
            arrowClass: "nike-cq-content-grid-arrow",
            closeClass: "nike-cq-content-grid-modal-close",
            clickBackgroundToClose: true
        };
        if ($(A.dialogClass).length == 0) {
            this.modal = nike.cq.UI.ModalCarousel(A);
            this.modal.showModal(false);
            this.modal.getDialog().addClass(this.wideDialogClass);
            this.modal.getCloseButton().addClass(this.wideDialogClass)
        }
    },
    showModalOverlay: function (L) {
        var B = $(L),
            H = B.find(".nike-cq-content-grid-image-component-overlay"),
            G = H.data(),
            D = H.find("ul.linkList").clone().html(),
            E = H.find("h2").clone().html(),
            C = H.find("h3").clone().html(),
            J = this;
        var M = "";
        if (!G) {
            return
        }
        if (G.overlayTitle1 !== "") {
            M += '<span class="grid-overlay-title1">' + E + "</span>"
        }
        if (G.overlayTitle2 !== "") {
            M += '<span class="grid-overlay-title2">' + C + "</span>"
        }
        var I = "";
        if (D !== null) {
            I += "<ul>" + D + "</ul>"
        }
        var K = this.modal.getDialog(),
            A = this.modal.getCloseButton();
        K.empty().append('<div class="nike-cq-content-grid-overlay-image"><img src="' + G.src + '" /></div><div class="nike-cq-content-grid-overlay-right"><h2>' + M + "</h2>" + I + "</div>");
        this.modal.showModal(true);
        var F = $(K.find("img")[0]);
        $("<img/>").load(function () {
            if (this.width >= this.height) {
                K.removeClass(J.tallDialogClass).addClass(J.wideDialogClass);
                A.removeClass(J.tallDialogClass).addClass(J.wideDialogClass)
            } else {
                K.removeClass(J.wideDialogClass).addClass(J.tallDialogClass);
                A.removeClass(J.wideDialogClass).addClass(J.tallDialogClass)
            }
        }).attr("src", F.attr("src"))
    },
    initCarousel: function () {
        var A = A || $("body");
        if (A.data("cmsMode") !== "EDIT") {
            nike.cq.PES.ContentGrid.initModalCarousel();
            $(".nike-cq-content-grid-component").each(function (B) {
                var C = $(this);
                C.delegate(".nike-cq-content-grid-image-cell", "click", function (D) {
                    nike.cq.PES.ContentGrid.showModalOverlay(this);
                    D.preventDefault()
                })
            })
        }
    }
});
nike.cq.PES.extend({
    Tracking: function () {
        var A = function (V, W, X) {
            if (W && X.events == null) {
                X.events = W
            }
            if (typeof (nike.dispatchEvent) === "function") {
                nike.dispatchEvent(V, X)
            }
        }, K = function () {
                J();
                N();
                P();
                E();
                U()
            }, J = function (V) {
                if (typeof (FB) === "undefined") {
                    setTimeout(function () {
                        J(V)
                    }, 100)
                }
                C()
            }, N = function () {
                var X = "",
                    V = "nike.com",
                    W = "twitter";
                if (typeof (twttr) != "undefined" && typeof (twttr.ready) == "function") {
                    twttr.ready(function (Y) {
                        Y.events.bind("tweet", function (Z) {
                            B(W, "share", V)
                        });
                        Y.events.bind("retweet", function (Z) {
                            X = "twitter:share:" + V;
                            B(W, "share", V)
                        });
                        Y.events.bind("follow", function (Z) {
                            B(W, "follow", Z.data.screen_name)
                        })
                    })
                }
            }, E = function () {
                $(".nike-cq-follow-option").delegate(".nike-cq-renren-follow-button", "click", function (a) {
                    var Z = a.currentTarget.attributes.link.nodeValue;
                    var X = $(window.open(Z, "RenRen", "height=620,width=504,toolbar=no,scrollbars=yes"));
                    var Y = "follow",
                        W = "renren",
                        V = a.currentTarget.attributes["data-site"].nodeValue;
                    B(W, Y, V)
                })
            }, U = function () {
                $(".nike-cq-follow-option").delegate(".nike-cq-weibo-follow-button", "click", function (a) {
                    var Z = a.currentTarget.attributes.link.nodeValue;
                    var X = $(window.open(Z, "Weibo", "height=620,width=504,toolbar=no,scrollbars=yes"));
                    var Y = "follow",
                        W = "weibo",
                        V = a.currentTarget.attributes["data-site"].nodeValue;
                    B(W, Y, V)
                })
            }, B = function (Z, a, X) {
                var W = "shareOptionClickEvent",
                    Y = null;
                if (a == "follow" || a == "like") {
                    data = {
                        shareType: Z,
                        interactionType: a,
                        site: X,
                        prop3: "follow us:" + X + ":" + Z + ":" + a
                    }
                } else {
                    data = {
                        shareType: Z,
                        interactionType: a,
                        site: X
                    }
                }
                var V = (document.domain.indexOf("store") != -1) ? true : false;
                if (!V) {
                    A(W, Y, data)
                }
                $(nike.cq.Tracking).trigger("nikeEventTrack", {
                    events: W,
                    data: data
                })
            }, C = function () {
                var W = "",
                    V = "facebook";
                if (typeof (FB) != "undefined") {
                    FB.Event.subscribe("edge.create", function (X, Z) {
                        var Y = T(X);
                        B(V, Y.interactionType, Y.site)
                    })
                }
            }, T = function (V) {
                if (V.indexOf("facebook") > 0) {
                    var W = V.replace("http://www.facebook.com/", ""),
                        W = V.replace("https://www.facebook.com/", ""),
                        W = W.toLowerCase();
                    return {
                        interactionType: "like",
                        site: W
                    }
                } else {
                    return {
                        interactionType: "share",
                        site: "nike.com"
                    }
                }
            }, P = function () {
                $("a.qq-share-button").bind("click", function (V) {
                    B("qq", "share", "nike.com")
                })
            }, R = function (W) {
                var V = "";
                if (W.el.attr("data-tracking")) {
                    V = W.el.attr("data-tracking")
                }
                return V
            }, I = function (W) {
                var V = R(W);
                var X = {};
                X.navItems = V;
                return "left:" + X
            }, L = function (W) {
                var X = {};
                if (typeof (W.el) !== "object") {
                    return X
                }
                var V = false;
                var Y = R(W);
                if (Y != "") {
                    V = true
                } else {
                    if (W.el.has("img").attr("alt")) {
                        Y = W.el.find("img").attr("alt")
                    } else {
                        if (W.el.has("span")) {
                            Y = W.el.find("span").text()
                        }
                    }
                } if (V) {
                    Y = nike.cq.Tracking.formatTextPreservingGreaterThanChar(Y)
                } else {
                    Y = nike.cq.Tracking.formatText(Y)
                } if (W.data != undefined && W.data.prop3 != undefined) {
                    Y = nike.cq.Tracking.replaceValues(W.data.prop3, Y)
                }
                X.prop3 = Y;
                return X
            }, F = function (V) {
                var W = {};
                if (typeof (V.el) == "undefined") {
                    return W
                }
                var X = V.el.parents(".nike-cq-p2-image-tout-300-container").find("span.nike-cq-subtitle-line-1").text();
                if (X == "") {
                    X = V.el.parents(".nike-cq-p2-image-tout-300-container").find(".nike-cq-touts-image-resource").attr("alt")
                }
                W.prop3 = "p2:" + nike.cq.Tracking.formatText(X);
                return W
            }, G = function (V) {
                var W = {};
                if (typeof (V.el) == "undefined") {
                    return W
                }
                var X = V.el.find("span.nike-cq-subtitle-line-1").text();
                if (X != "") {
                    X = nike.cq.Tracking.formatText(X)
                } else {
                    X = V.el.find(".video-thumbnail").attr("data-video-id")
                }
                W.prop3 = "p2:" + X;
                return W
            }, H = function (V) {
                var W = {};
                if (typeof (V.el) == "undefined") {
                    return W
                }
                var X = V.el.parents(".nike-cq-story-body-teaser-component").data("title");
                if (X == "") {
                    X = V.el.text()
                }
                W.prop3 = "story page:" + nike.cq.Tracking.formatText(X);
                return W
            }, M = function (W) {
                var X = {};
                if (typeof (W.el) == "undefined") {
                    return X
                }
                var V = W.el.data("network");
                if (typeof (V) == "undefined") {
                    V = nike.cq.NikeCom.SocialFeed.currentData.getNetwork()
                }
                X.prop3 = "community overlay:" + V;
                return X
            }, Q = function (W) {
                var X = {};
                if (typeof (W.el) == "undefined") {
                    return X
                }
                var Y = W.el.parents(".slide").data("slide-index");
                if (typeof (Y) == "undefined") {
                    return X
                }
                var V = R(W);
                X.prop3 = "merch zone[" + Y + "]:" + V;
                return X
            }, O = function (X) {
                var Y = {};
                if (typeof (X.el) == "undefined") {
                    return Y
                }
                var Z = X.el.data("src");
                var W = "";
                if (typeof (Z) !== "undefined") {
                    var V = /\s*([\/a-z]{2}_[a-z]{2}\/)\s*/;
                    var W = Z.split(V);
                    W = W[2].split(".")
                }
                Y.prop3 = "content grid:modal:" + W[0];
                return Y
            }, D = function (V) {
                var W = {};
                if (typeof (V.el) !== "object") {
                    return W
                }
                var X = V.el.find("img").attr("data-tracking");
                W.prop3 = "P1 thumbnail:" + X;
                return W
            }, S = {
                event: {
                    "jcr:primaryType": "nt:unstructured",
                    "nike-cq-three-column-benefits-cta-component": {
                        elementSelector: ".nike-cq-page-section-three-column-benefits-container .nike-cq-cta-component a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "3 column:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-active-page-title-cta-component": {
                        elementSelector: ".nike-cq-active-page-title-cta .nike-cq-cta-component a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "active page title:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-community-tout": {
                        elementSelector: ".nike-cq-social-feed-community-component-item",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.communityToutProcessor",
                            followLink: false
                        }
                    },
                    "nike-cq-community-dialog": {
                        elementSelector: "body",
                        eventName: "cqPageActivity",
                        action: "delegate",
                        delegate: ".nike-cq-community-modal-right, .nike-cq-community-modal-left",
                        delegateAction: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.communityToutProcessor",
                            followLink: false
                        }
                    },
                    "nike-cq-content-grid-cta-component": {
                        elementSelector: ".nike-cq-grid-lookbook .nike-cq-cta-component a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "content grid:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-content-grid-overlay": {
                        elementSelector: ".nike-cq-content-grid-image .nike-cq-content-grid-image-component-overlay ",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.contentGridOverlayProcessor",
                            followLink: false
                        }
                    },
                    "nike-cq-content-grid-overlay-cta": {
                        elementSelector: ".nike-cq-content-grid-modal-dialog",
                        eventName: "cqPageActivity",
                        action: "delegate",
                        delegate: ".nike-cq-content-grid-overlay-right a",
                        delegateAction: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "content grid:[elementText]"
                        }
                    },
                    "nike-cq-content-slideshow-cta-component": {
                        elementSelector: ".nike-cq-content-slideshow .nike-cq-cta-component a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "content slideshow:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-copy-block-cta-component": {
                        elementSelector: ".nike-cq-copy-block .nike-cq-cta-component a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "copy block:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-copy-block-anchors": {
                        elementSelector: ".nike-cq-copy-block .nike-cq-text-component a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "copy block:[elementText]"
                        }
                    },
                    "nike-cq-global-footer-cta": {
                        elementSelector: ".nike-cq-global-footer-container .nike-cq-cta a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "footer:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-global-footer-links": {
                        elementSelector: ".nike-cq-global-footer-container a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "footer:[elementText]"
                        }
                    },
                    "nike-cq-hyperlink": {
                        elementSelector: ".nike-cq-hyperlink-component ul.link-list a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "hyperlink:[elementText]"
                        }
                    },
                    "nike-cq-kms-cta-component": {
                        elementSelector: ".nike-cq-kms .nike-cq-cta-component a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "kms carousel:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-left-navigation-links": {
                        elementSelector: ".nike-cq-left-navigation-nav-links a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "left:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor",
                            followLink: false
                        }
                    },
                    "nike-cq-left-navigation": {
                        elementSelector: ".nike-cq-left-navigation-nav-links a",
                        eventName: "storeNavChangedEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            clicked: "true"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.leftNavigationProcessor"
                        }
                    },
                    "nike-cq-left-navigation-component-tout": {
                        elementSelector: ".nike-cq-left-navigation-tout a",
                        eventName: "storeNavChangedEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            navItems: "left:tout",
                            clicked: "true"
                        }
                    },
                    "nike-cq-merch-menu": {
                        elementSelector: "ul.nike-cq-merch-menu-links a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "merch menu:[elementText]"
                        }
                    },
                    "nike-cq-portrait-merch-zone-carousel": {
                        elementSelector: ".nike-cq-portrait-merch-zone-carousel a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.merchZoneToutProcessor"
                        }
                    },
                    "nike-cq-notification-banner-cta": {
                        elementSelector: ".nike-cq-notification-banner-container .nike-cq-cta a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "promo:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-nikeplus-activity-carousel-cta-component": {
                        elementSelector: ".nike-cq-page-section-nikeplus-activity-carousel-container .nike-cq-cta-component a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-p1-cta-component": {
                        elementSelector: ".nike-cq-p1 .nike-cq-cta-component a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "p1:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-p2-image-tout-300-container": {
                        elementSelector: ".nike-cq-p2-image-tout-300-container a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.p2ImageTout300Processor"
                        }
                    },
                    "nike-cq-p2-video-tout-300-container": {
                        elementSelector: ".nike-cq-p2-video-tout-300-container",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.p2VideoTout300Processor",
                            followLink: false
                        }
                    },
                    "nike-cq-phone-inpage-navigation-links": {
                        elementSelector: ".nike-cq-page-menu-links a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "in page nav:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor",
                            followLink: true
                        }
                    },
                    "nike-cq-product-options-option": {
                        elementSelector: ".nike-cq-product-options-thumbs a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "P1 thumbnail:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.productOptionsProcessor",
                            followLink: false
                        }
                    },
                    "nike-cq-reddit-share": {
                        elementSelector: ".nike-cq-active-page-title-share-option-reddit a",
                        eventName: "shareOptionClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            shareType: "reddit",
                            interactionType: "share",
                            site: "nike.com"
                        }
                    },
                    "nike-cq-story-tout": {
                        elementSelector: ".nike-cq-story-body-text a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "story page:[elementText]"
                        }
                    },
                    "nike-cq-related-story-tout": {
                        elementSelector: ".nike-cq-story-body-teaser a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.relatedStoryToutProcessor"
                        }
                    },
                    "nike-cq-story-body-cta-component": {
                        elementSelector: " .nike-cq-story-sidebar .nike-cq-story-sidebar-cta a",
                        eventName: "cqPageActivity",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "story page:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-story-related-product-cta-component": {
                        elementSelector: ".nike-cq-story-sidebar .nike-cq-related-product-cta-wrapper .nike-cq-cta-component a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "story page:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    },
                    "nike-cq-team-selector-links": {
                        elementSelector: ".nike-cq-team-selector-links a",
                        eventName: "toutClickEvent",
                        action: "click",
                        "jcr:primaryType": "nt:unstructured",
                        data: {
                            prop3: "teamselector:change team:[elementText]"
                        },
                        dataConfig: {
                            eventProcessor: "nike.cq.PES.Tracking.ctaProcessor"
                        }
                    }
                }
            };
        return {
            ctaProcessor: L,
            setupEventTracking: K,
            sendEventTrackingToThirdParty: A,
            config: S,
            p2ImageTout300Processor: F,
            p2VideoTout300Processor: G,
            relatedStoryToutProcessor: H,
            communityToutProcessor: M,
            productOptionsProcessor: D,
            leftNavigationProcessor: I,
            merchZoneToutProcessor: Q,
            contentGridOverlayProcessor: O
        }
    }()
});
$(function () {
    nike.cq.Tracking.init(nike.cq.PES.Tracking)
});
nike.cq.PES.Notification = (function () {
    var A = function () {
        $(".nike-cq-notification-banner-container").each(function () {
            var B = $(this);
            if (B.parent(".nike-cq-pes-reference") == 0) {
                B.css("width", "768px")
            }
        })
    };
    return {
        init: A
    }
})();
$(document).ready(function () {
    nike.cq.PES.Notification.init()
});
var nike = nike || {};
nike.cq = nike.cq || {};
nike.cq.PES = nike.cq.PES || {};
nike.cq.PES.leftNavigation = (function () {
    var H = $(".nike-cq-left-navigation-component"),
        I = H.find(".nike-cq-nav-title"),
        J = H.find(".nike-cq-left-navigation-nav-links"),
        K = H.find(".nike-cq-nav-section-title"),
        L = H.find(".nike-cq-nav-nav"),
        E = $("nike-cq-page-section-left-navigation-tout-container").attr("data-nav-config"),
        F = I.outerHeight(true),
        C = K.outerHeight(true),
        B = 400;
    if (typeof E === "undefined") {
        E = 6
    }
    var D = function () {
        I.append('<span class="nike-cq-left-nav-action-main">-</span>');
        K.append('<span class="nike-cq-left-nav-action">-</span>');
        I.wrap('<a href="#" class="nike-cq-nav-title-link"></a>');
        K.wrap('<a href="#" class="nike-cq-nav-section-title-link"></a>');
        H.delegate("a.nike-cq-nav-section-title-link", "click", function (P) {
            P.preventDefault();
            var O = $(this),
                N = O.find("span.nike-cq-left-nav-action"),
                M = O.parents(".nike-cq-nav-section:first");
            if (N.html() == "-") {
                if (typeof M.data("height") == "undefined") {
                    M.data("height", M.height())
                }
                M.stop().animate({
                    height: C + "px"
                }, B, function () {
                    L.data("height", L.height());
                    O.addClass("nike-cq-nav-closed")
                });
                N.html("+")
            } else {
                M.stop().animate({
                    height: M.data("height")
                }, B, function () {
                    M.css("height", "auto");
                    L.data("dataheight", L.height())
                });
                O.removeClass("nike-cq-nav-closed");
                N.html("-")
            }
        });
        H.delegate("a.nike-cq-nav-title-link", "click", function (O) {
            O.preventDefault();
            var N = $(this),
                M = N.find("span.nike-cq-left-nav-action-main");
            if (M.html() == "-") {
                if (typeof L.data("height") == "undefined") {
                    L.data("height", L.height())
                }
                F = I.outerHeight(true);
                L.stop().animate({
                    height: F
                }, B, function () {
                    I.addClass("nike-cq-min-nav");
                    L.addClass("nike-cq-min-nav-section")
                });
                M.html("+")
            } else {
                I.removeClass("nike-cq-min-nav");
                L.removeClass("nike-cq-min-nav-section");
                L.stop().animate({
                    height: L.data("height")
                }, B, function () {
                    L.css("height", "auto")
                });
                M.html("-")
            }
        })
    };
    var A = function (U, S) {
        J.each(function (V) {
            var W = $(this),
                a = W.find("li");
            if (a.length > E) {
                var Y = a.outerHeight(true),
                    Z = Y * (E - 1);
                W.data("height", W.height()).data("minheight", Z);
                var X = U.replace("[title text]", W.attr("data-plural"));
                W.addClass("nike-cq-left-navigation-nav-links-shrunk").height(Z).after('<span class="nike-cq-left-nav-additional-content"><a href="#" data-plural="' + W.attr("data-plural") + '">' + X + "</a></span>")
            }
        });
        var T = $(".nike-cq-left-nav-additional-content");
        if (T.length) {
            H.delegate(".nike-cq-left-nav-additional-content a", "click", function (X) {
                X.preventDefault();
                var W = $(this),
                    V = W.parent().prev(".nike-cq-left-navigation-nav-links");
                if (W.hasClass("nike-cq-left-nav-section-expanded")) {
                    W.html(U.replace("[title text]", W.attr("data-plural")));
                    V.animate({
                        height: V.data("minheight")
                    }, B, function () {
                        var Y = W.parents(".nike-cq-nav-section:first");
                        Y.data("height", Y.height());
                        L.data("height", L.height())
                    });
                    W.removeClass("nike-cq-left-nav-section-expanded")
                } else {
                    W.html(S.replace("[title text]", W.attr("data-plural")));
                    V.animate({
                        height: V.data("height")
                    }, B, function () {
                        var Y = W.parents(".nike-cq-nav-section:first");
                        Y.data("height", Y.height());
                        L.data("height", L.height())
                    });
                    W.addClass("nike-cq-left-nav-section-expanded")
                }
            })
        }
        var M = 120;
        var O = $(".nike-cq-active-page-title-optional,.nike-cq-notification-reference-component").length;
        if (O) {
            M = M - (O * 60)
        }
        var N = $("section.nike-cq-left-navigation-section").position().top - M;
        var R = function () {
            if ($(document).width() <= 1472) {
                $("a.nike-cq-nav-section-title-link:not(a.nike-cq-nav-section-title-link:first)").click()
            }
            if ($(document).width() <= 1009) {
                $("a.nike-cq-nav-title-link").click()
            }
            if (typeof P != "undefined") {
                window.clearInterval(P)
            }
            $("section.nike-cq-left-navigation-section").css("top", N).animate({
                opacity: 1
            }, 1000, function () {
                $(this).addClass("nike-cq-visible-nav")
            })
        };
        var Q = function () {
            if (MonoTypeWebFonts.cleanupExecuted) {
                R()
            }
        };
        if (typeof MonoTypeWebFonts == "undefined") {
            R()
        } else {
            var P = window.setInterval(Q, 1000)
        }
    };
    var G = {
        init: function () {
            D();
            nike.cq.Content.i18n.get({
                more: "LeftNavMore",
                less: "LeftNavLess"
            }, function (M) {
                A(M.more, M.less)
            })
        },
        initLeftNavMod: function () {
            if ($(".left-bar").length) {
                $(".nike-cq-tesla-xml").addClass("nike-cq-mod-left-nav tesla-mod-left-nav")
            }
        }
    };
    return G
})();
$(function () {
    nike.cq.PES.leftNavigation.initLeftNavMod();
    if ($("section.nike-cq-left-navigation-section").length) {
        nike.cq.PES.leftNavigation.init()
    }
    var A = A || $("body");
    if (A.data("cmsMode") !== "EDIT") {
        if ($(".nike-cq-left-navigation-component-tout .nike-cq-anchor-component").length > 0) {
            $("div.nike-cq-left-navigation-component-tout").wrapInner(".nike-cq-anchor-component a")
        }
    }
});